package business;

import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

import javax.servlet.http.HttpServletRequest;

import service.myService.panduan.PanduanService;
import service.myService.panduan.PanduanServiceImpl;
import service.vo.MessageVo;
import struts.action.Action;
import struts.form.ActionForm;

public class PanduanAction implements Action {

	public String execute(HttpServletRequest request) {
		String url = "";
		PanduanService service = new PanduanServiceImpl();
		Map<String, MessageVo> map = service.getVo(request.getParameter("name"));
		Iterator it = map.keySet().iterator();
		while(it.hasNext()) {
			Map.Entry entry = (Entry) it.next();
			url = (String) entry.getKey();
		}
		
		return url;
	}

	public String execute(HttpServletRequest request, ActionForm form, Map<String, String> map) {
		// TODO Auto-generated method stub
		return null;
	}

}
